CC=gcc
LEXER=lex
SOURCE=tictactoe.l
FLAGS=-g
all: tictactoe
tictactoe: lex.yy.c
	$(CC) $(FLAGS) $< -o $@
lex.yy.c: $(SOURCE)
	$(LEXER) $<
clean:
	rm lex.yy.c tictactoe